package nxu.it;

import io.quarkus.runtime.StartupEvent;
import io.smallrye.config.ConfigMapping;
import io.vertx.ext.web.Router;
import io.vertx.ext.web.handler.FileSystemAccess;
import io.vertx.ext.web.handler.StaticHandler;
import jakarta.enterprise.event.Observes;
import org.eclipse.microprofile.config.inject.ConfigProperty;

public class StaticResourceConfig {


    void installRoute(@Observes StartupEvent startupEvent, Router router) {
        System.out.println("init");
        router.route()
                .path("/static/**")
                .handler(StaticHandler.create("static/"));

    }
}
